clear;
addpath("函数\");
E = imread("./加密图像/RGB图像加密.bmp");
%提取秘密图像
I(:,:,1) = extract(E(:,:,1));
I(:,:,2) = extract(E(:,:,2));
I(:,:,3) = extract(E(:,:,3));
%解密
I(:,:,1) = Logistic(I(:,:,1));
I(:,:,2) = Logistic(I(:,:,2));
I(:,:,3) = Logistic(I(:,:,3));
imshow(I);
imwrite(I,"./解密图像/RGB解密.bmp")